package com.vca.common.model.appointment;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("vca_appointment_record")
@ApiModel(value="AppointmentRecord对象", description="预约记录表")
public class AppointmentRecord implements Serializable {
    private static final long serialVersionUID = -3394424063425847441L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "订单ID")
    private Integer order_id;

    @ApiModelProperty(value = "购买人")
    private Integer buyer;

    @ApiModelProperty(value = "预约人")
    private Integer lecturer;

    @ApiModelProperty(value = "预约人电话")
    private String lecturerPhone;

    @ApiModelProperty(value = "预约人姓名")
    private String lecturerName;

    @ApiModelProperty(value = "预约人邮箱")
    private String lecturerEmail;

    @ApiModelProperty(value = "1=为自己 2=赠送他人")
    private Integer buyType;

    @ApiModelProperty(value = "课程ID/讲座ID/展览ID")
    private Long goodId;

    @ApiModelProperty(value = "预约类型 1=课程 2=讲座  3=展览")
    private Integer goodType;

    @ApiModelProperty(value = "是否领取 0=未领取  1=已领取")
    private Boolean isGet;

    @ApiModelProperty(value = "状态 0=已预约（未参与） 1=已参与 2=已取消")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;


}
